package com.champaign.spring.takeaway;

/**
 * FoodDeliveryPlatform
 * @author yd
 * @create 2019-04-25 08:31
 */
public class FoodDeliveryPlatform {

    private String type;
    private Rider rider;

    public FoodDeliveryPlatform(String type){
        this.type = type;
    }

    public void setRider(Rider rider){
        this.rider = rider;
    }

    public DeliveryStatus doDelivery(){
        return rider.deliver();
    }
}
